package com.zkh.myutils.database.data.tools;

import java.lang.reflect.Method;

/**
 * 实体类方法反射属性
 * @author zkh
 *
 */
public class BeanMethodInvokeBean {
	//字段名
	private String fieldName;
	//字段类型
	private Class<?> fieldType;
	//setter方法名
	private String methodName;
	//setter的Method
	private Method method;
	
	/**
	 * 构造方法
	 * @param fieldName 字段名
	 * @param fieldType 字段类型（bean类型）
	 * @param methodName setter名称
	 * @param method setter的Method
	 */
	public BeanMethodInvokeBean(String fieldName, Class<?> fieldType, String methodName, Method method) {
		super();
		this.fieldName = fieldName;
		this.fieldType = fieldType;
		this.methodName = methodName;
		this.method = method;
	}
	
	public String getFieldName() {
		return fieldName;
	}
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}
	public Class<?> getFieldType() {
		return fieldType;
	}
	public void setFieldType(Class<?> fieldType) {
		this.fieldType = fieldType;
	}
	public String getMethodName() {
		return methodName;
	}
	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}
	public Method getMethod() {
		return method;
	}
	public void setMethod(Method method) {
		this.method = method;
	}
}
